Interface: WorkletMessagePortOptions<T>
Type parameters
Name |
---|
T |
Hierarchy
WorkletMessagePortOptions
Properties
errorHandler
• Optional
errorHandler: (event
: Event
) => void
Type declaration
▸ (event
): void
Parameters
Name | Type |
---|---|
event | Event |
Returns
void
messageHandler
• messageHandler: (message
: T
) => void
Type declaration
▸ (message
): void
Parameters
Name | Type |
---|---|
message | T |
Returns
void